#pragma once
#include "curl/curl.h"
#include "Util.h"

namespace request_manager
{

	class Requester
	{
	public:
		static CURL *curl;
		static void init();

		static Response response;
		static Response _doGET(Request* request);
		static Response _doPOST(Request* request);
		static Response _do();
		
		static char errorBuffer[CURL_ERROR_SIZE];
		
	private:
		Requester();
		~Requester();
		static size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userdata);
	};
}